home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
qt_head.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
639b
|
24 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
/ Return the queue_head associated with this queue.
/ If it doesn't already exist, create it.
ueue_head *queue_tail::head()
if (debug) /*DELETE*/ cerr << "queue_tail" << this << "::head()\n";
process_queue *q = qt_queue;
register queue_head *h = q->q_head;
if (!h)
{
q->q_head = h = new queue_head(qt_mode, 0);
h->qh_queue = q;
}
if (debug) /*DELETE*/ cerr << "queue_tail" << this << "::head() <- " << h << "\n";
return h;